package java_demos.java_basic.instance_demos.about_string;

public class SearchStringEmp {
    public static void main(String[] args) {
        /**
         * @description:
         * @author:  字符串搜索
         * @date: 2024/5/29 下午2:51
         * @param: [args]
         * @return: void
         **/
        String strOrig = "Google Runoob Taobao";
        int intIndex = strOrig.indexOf("Runoob");
        if(intIndex == -1){
            System.out.println("没有找到Runoob");
        }else{
            System.out.println("Runoob字符串的位置为："+intIndex);
        }

    }
}
